import request from '@/utils/request'

let BASE_ADDRESS = '/doc/law'


//分页查询
export const getLawListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//修改法条
export const getLawEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}
//id查询
export const getLawGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}